import {Navigate, RouteObject} from "react-router-dom";
import {lazy} from "react";


const Discover =lazy(()=>import('../views/discover'))


const routes: RouteObject[] =[
    {
        path:'/discover',
        element:<Discover/>
    },
    {
        path:'/',
        element:<Discover/>
    },
    {
        path:'/a',
        element:<Navigate to={"/discover"}></Navigate>
    },
]

export default routes
